public BufferedImage getSprite(String ref) {
		if(sprites.get(ref) != null){
			return (BufferedImage) sprites.get(ref);
		}
		
		BufferedImage image = null;
		try {
			URL url = ResourceLoader.getResource(ref);

			if (url == null) {
				System.out.println("Can't find ref: "+ref);
			}
			
			image = ImageIO.read(ResourceLoader.getResource(ref));
		} catch (IOException e) {
			System.out.println("Failed to load: "+ref);
		}
		
		sprites.put(ref, image);
		
		return image;
	}