Decoherence control for optical qubits