Added rotate wrapper function to Canvas2D