Domino Image Solver

I thought it would be neat to approximate an image with dominos. I started writing an optimization algorithm to find out the right domino layout for a given image. But I got distracted by trying to render blocks in an isometric 3D perspective.