add util to turn scalar intensity into a vector