Fixed the SurfacePanel to allow proper use of Graphics