save base64-encoded png thumbnail