Maya api fileTextureNode not displaying in viewport 2.0

Hi,
I’m modifying the filetexturenode from Maya API example is working now.
Is there a way to implement this functionality.
code:
https://goo.gl/HLRcJz

Thanks,
-Alex