stream an image into BASE64