imagefun: made basic igens and valgen