ensure the temp file ends in jpeg or jpg before running jhead routine