Update generate_qr_code to use Config