The image being resized is not a valid gif, jpg or png.