cleaned up code in exif_script