Fixed the issue of running out of local memory causing execution of the kernel to fail.
It is now possible to use 1024x1024 pixels in the CCD.

However the code still needs to be updated to use double-precision floating point number.
Currently it is only using single, and the speckle image is noticably bad.