Editing a picture to make it “Instagram worthy” can be difficult. Most simple apps have the basic filters, highlighting and exposure tools that you might expect. But apps that transform photos into a custom portrait in the style of your favorite artist need to use something more complex. This is because imposing, for example, the distinctive brushstrokes and features of Vincent can Gogh’s The Starry Night onto an average photo can often distort the structure of the image. Existing programs focus on the content and style of images, but usually do not preserve the edges and contours of the subjects photographed. This causes the final image to lose the structural details of the original photograph.