Updated the SetPixel method so it takes in x and y coordinates.