Implement metaimage-generator, resolves #140