Inverse Graphics Via Simulation-Driven Learning