qga: Encode images with base64