Sometimes a JPEG is really a GIF

When this happens we don't resize the masquerading GIF correctly.