When a ray of light enters a transparent medium, part is reflected and the part that passes through the medium is refracted. The reflected ray is usually weak and that is why the image formed is usually not clear. E.g. the image formed on a water surface. If a ray of light is moving from a dense to a less dense medium, it is possible that the ray will not emerge from the denser medium.