replaced Graphics to Graphics2D