error checking in make_jpeg, check for capital TIF(F) extension