added scale and rotate to layer model
Merge pull request #19 from afewyards/master

added scale and rotate to layer model