private void writeObject(ObjectOutputStream out) throws IOException
	{
		System.out.println("starting writing sprite...");
		out.writeObject(name);
		out.writeInt(width);
		out.writeInt(height);
		out.writeInt(hSubimages);
		out.writeObject(anchor);
		ImageIO.write(image,"png",out);
		System.out.println("ending writing sprite...");
	}