private SpriteSheet(int ROWS, int COLUMNS, String path)
	{
		sprites = new ArrayList<>();
		
		try
		{
			this.img = ImageIO.read(this.getClass().getResource(path));
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
		
		double row = img.getWidth() / ROWS;
		double column = img.getHeight() / COLUMNS;
		
		// Not worth getting a subimage, just return the regular image.
		if(ROWS == 1 && COLUMNS == 1)
			sprites.add(img);
		
		else
			for(double y = 0; y < img.getHeight(); y += column)
				for(double x = 0; x < img.getWidth(); x += row)
					sprites.add(img.getSubimage((int)x, (int)y, (int)row, (int)column));
	}