public SpinningWheel(int x, int y, int size, int delay) {
		for(int i = 0; i < images.length; i++) {
			images[i] = Utilities.resizeImage(size, size, "resources/InfiniteProgress_" + i + ".png");
			currentImage = images[0];
		}
		this.setBounds(x, y, images[0].getWidth(null), images[0].getHeight(null));
		timer = new Timer(delay, new ActionListener() {
	        @Override
	        public void actionPerformed( ActionEvent e ) {
	        	currentImage = images[j++];
	        	if(j == 12) {
	        		j = 0;
	          }
	          SpinningWheel.this.repaint();
	        }
	      } );
		timer.setRepeats(false);
		timer.start();
	}