Removed trigonometrical calls done fore each pixel