encode image to base64 text string using native openssl package in osx.  encoding with this method is more widely-available than the regular base64 package, because it doesn't first require installing xcode or building gnu coreutils from source.