How to enable or disable the Image Rotation