Renamed constants. Fixed rotation algorithm. Removed ImageThumbnailUri.