Creation of an option flag to turn image rotation optional