updated photo upload event handlers