Mostly complete version with text-to-image linker.