Even if the name is "sample.jpg", is the content really JPEG? Saving an image and changing the file extension are different ...