Added scale and rotate functions