ENH: Moved transform model generation code to transform logic

This allows users to access visualization algorithms, for for saving into file, conversions, etc.