improved error message on deleting used images

git-svn-id: https://cmsimplexh.svn.sourceforge.net/svnroot/cmsimplexh/trunk@438 4f8f9682-67af-44ce-aacd-401fd16d96b5