Added ability to pass a json object with config options for the galleryView