Proper use of setTransform()