added vectorised version of color correction codes. It should run much faster when process full image resolution