Fixed a bug which affected image layer transformations