updated figure document to be genereated via node type dependent hook. added hook to wrap IIP assets into layered images