Fixed rerpImage to work with hed