Drawing a 3D view of the image