Make sure that the file name of the image you're uploading ends with either .jpg, .gif or .png. Anything else will be rejected.