js: getBase64Image for use inside .ss