Fix positioning for text and image layers.
Merge pull request #41 from dhawt/fix_scaled_positioning

Fix positioning for text and image layers.