Hi, you can definitely create your custom function which will obtain data for you from parent document. You can find more about creating custom transformation functions in our developer's guide(
Custom functions). You should pass NodeId of the image file to this function and in it's body, you should obtain image document using our API(
Select document), then you should use its parentId property and again using our API select parent node and finally you can process its values.
Best Regards,
Zbysek Nemec.