Inverse Texture Synthesis