added intelligent reload of trash directories on image delete