Fixed all the bugs. Added deletion of imageset folders: if empty, or if explicitly chosen in the one-by-one mode.

Everything works 100% reliable now.