Reorganize functions, simplify picture change functions, and add slide show button.