Implemented rotation in canvas