In the first instance, this script will source its image not from the CCD but from an image displayed on the screen. This must be 1024 x 1024. Scroll down the script to where the gaps occur and follow the instructions there. Once you have determined that this script will work with a static image displayed on the screen, deactivate the script code which sources the static image and activate the part which gets the image from the CCD. Depending on the format of your camera, you will have to edit the two variables ccdxsize and ccdysize (immediately below) to suit the dimensions of your camara.