Learning to draw