When the image is on the far side of the lens as the object, the image distance would be positive and the image will appear as real image.
When the image is on the same side of the lens then the image distance would be negative and the image will appear as virtual image.