Improve performance when shifting pixels