tom: support images using base64