fixed photoupload from gallery