Simulating circuit from images using deep neural networks