compare images correctly
delete directories