Fix photo library path and remove duplicate fields