trigger event on cleanup, implemented deletion of all unused image files