Texture synthesis for stable planar tracking