Fixes an issue where the image is not encoded correct into base64

Jira issue: APPPARTY-51
Merge pull request #20 from eelcocramer/APPPARTY-51

Fixes an issue where the image is not encoded correct into base64