implement full functionality of photo upload