Fixed image deletion when adding a new classified