Add __hash__ to Image and Solid.