This commit adds split saving and image linking. The next commit will replace many of the functions with angularfire