ISM refactoring.

git-svn-id: svn://svn.code.sf.net/p/xps2img/code/trunk@627 f56d0dea-3dc4-4344-980a-dda9636af30f