Add RETURN_MEDIA_AS_BASE64_STRING setting

when you have some other means of getting the binary (like custom flask endpoint) there is no need to get it encoded in response