You can create a named query that brings back the image bytes. If you are using MySQL, convert it to base64 in the query with TO_BASE64(ImageData).
Bind the source property of the perspective image component to the named query.
Do the following script transform:
b64Image = "data:imagef;base64,%s"%value
return b64Image