Layered Image Synthesis