Used scaling code from MonkeyPanel in DebugPanel