Scale, translate and rotate graphics with a new method