Added support for rotation

Added the support for GFX rotation