Add option to get image data as Base64 string