Optimized X3Graphics.FillRect method, and removed private mapX and madY methods.