Make the img rotation function static
ImageRotate fix

error catch for exif_read_data was not working.