Quantized electromagnetic fields as control tools for flux qubits