check for exif_read_data before using it. props andersapt