added platform independent trash functionality, user can restore images etc.