Updated gallery to work with string inputs. Needs documentation.