im_histspec() becomes a class