Update base64image.js

fixed issue #5