Add some comment, insert method to create a window and changed a
ImageIO.write() method, so there is no errors anymore, enjoy )