Created capturePhoto control