Implemented functionality to choose photos or videos from the gallery