Take a few shortcuts when no resizing is required. Fix content type in
cached images.