fixed not recognizing JPG