also support JPG files, not only jpg files