CLUtils::toImage debugging function.