Resizing image extension confusion fixed