Added Li's algorithm for saving table html into a string returnVal given an integer of how many images are desired per line as well as desired page width and image spacing.