put most of the matte_painting machinery in gyoto.i