Apache Forrest code fix

code fix
by
NKB
:

Fixed the handling of images and resources in the resources.xmap
pipeline, to cater for the new system that does not copy docs prior
to rendering.