Add option to weigh pixels during compensation image generation