Corrected bug in setImage file

getpixelxy is still buggy