convert the image small in 2d