Implemented draw function in scale and rotate.