Use an object URL instead of the full base64 encoded string

The full string was causing memory issues