Make the img rotation function static
Merge branch 'dev_imgrotation' into dev_imgrotation_thumbs
ImageRotate fix

error catch for exif_read_data was not working.