Added method "transform" to canvas 2d context implementation