public Image(String path, String name) {
		super(1, 1);
		try {
			image = ImageIO.read(Image.class.getResourceAsStream(path));
		} catch (IOException e) {
			e.printStackTrace();
		}
		width = image.getWidth();
		height = image.getHeight();
		
		pixels = image.getRGB(0, 0, width, height, null, 0, width);
		if(pixels[0] < 0) {
			for (int i = 0; i < pixels.length; i++) {
				pixels[i] += 0x1000000;
			}
		}
		
		preColorPixels = pixels;
		
		this.name = name;
	}