single page app for base64 encoding images