Added SetPixel function to ImageData
Various fixes