Large image

Fix issues noticed when the image has no pixels.