Use UIImagePNGRepresentation to preserve transparency
Merge pull request #552 from garnett/master

Use UIImagePNGRepresentation to preserve transparency (fix for #545)