Working on camera/gallery option, fixing run time errors