Add getImageBase64String method to plugin

Removed old readData method and replaced it with getImageBase64String.

Base64 encoding is now done in Java rather than JavaScript.  This
removes a JS library dependency.