fix for nil photo input submission