Added image saving capabilities and merging of files in localsetup.