Correctly rendering an image