change pixel bounds to [x, x+1)