Use gallery selector for insertion of images into HTML. Update remaining dialogs to bootstrap 3.