Changed PixelCoord to a struct with x and y position.