Use the pixmaps directly instead of converting them to PNG first
Also, some code cleanup
Prevent crashes through improved promise handling, report more errors to the user, code cleanup
Merge pull request #26 from adobe-photoshop/dk/refactoring

Use the pixmaps directly instead of converting them to PNG first