Image resizing failed: Invalid image data.