Texture Synthesis via a Non-parametric