single page app for base64 image encoding