encode images as base64 strings