When light enters a closed room through a small hole in the door, the image of an outside building appears as inverted on the opposite wall. This is because
The hole acts as a convex lens
Light takes curvature at the edges of the hole
Of rectilinear propagation of light
The hole acts as a concave lens