seems to work better without pixel position as dimensions in histogram