panel.setPreferredSize(new Dimension(_width,_height));
panel.setSize(new Dimension(_width,_height));
panel.setWidth(_width);
panel.setHeight(_width);
setBufferedImage(new BufferedImage(_width,_height,BufferedImage.TYPE_INT_RGB));
panel.paintComponent(this.getBufferedImage().createGraphics());
return panel;
}
/**
* Since we only have 4 shapes, the method will start with the