Add Image Rotation Script (rotate.php)

Property of http://www.marcofolio.net/ - need to edit to suit your
needs.