generate png from base64