FOP-2226: Image resources are not closed when rendering into the Intermediate Format


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1458382 13f79535-47bb-0310-9956-ffa450edef68