remove obsolete dll
destroy session variable upon image deletion