Store image resolution to proper attributes instead of width/height
Merge pull request #56 from dhawt/fix_image_layers

Store image resolution to proper attributes instead of width/height