simplified detectors model
added the option to also uploaded images
deleting image files when deleting objects from db.