Updated MainFragment to take photo or get image from gallery and then pass it to the imagevieweracrtivity