Replace the Graphics2D calls by a new Render class delegating all processing to the Graphics2D API. Implements the following first methods: - drawLine, - drawRectangle, - drawCircle, - drawText, - drawImage.