fix for .JPG and .JPEG files