add the use of imageio and graphics2d