Learning to Infer Graphics Programs from Hand-Drawn Images