Added image_ref clear missing to dbIntegrityCheck