added local photo upload: