Added functionality to switch between the viewfinder, gallery, and image
Added functionality to switch between the viewfinder, gallery, and image