Neatly dispose Image resources + support for linenr