Page preview from data-url

The preview needs to be an image object. So maybe you can convert this data-url to a virtual image object in your page model.

This might give you an idea: