takes picture in gallery view.