added scale and rotate to layer model