enabling photo upload