Improved range pixel selection