Fix issue with jpeg files that don't end in .jpg