Cleaned code; Using "BufferedGraphics"