Data-Driven Visual Synthesis For Natural Image And Video Editing