public static ArrayList<BufferedImage[]> loadMultiAnimation(int[] frames, int width, int height, String path){
		try {
			ArrayList<BufferedImage[]> sprites;

			final BufferedImage spritesheet = ImageIO.read(Images.class.getClass().getResourceAsStream(path));

			sprites = new ArrayList<BufferedImage[]>();
			for (int i = 0; i < frames.length; i++) {

				final BufferedImage[] bi = new BufferedImage[frames[i]];

				for (int j = 0; j < frames[i]; j++)
					bi[j] = spritesheet.getSubimage(j * width, i * height, width, height);
				sprites.add(bi);
			}
			return sprites;

		} catch (final Exception e) {
			e.printStackTrace();
			System.out.println("Failed to load " + path + ". Shutting down system.");
			System.exit(0);
		}
		return null;
	}