Learning To Manipulate Images With Image Segmentation, Search And Synthesis