camera and photo library working