GraphPanel class fixed for drawing