Automatic and Manual Image Rotation