Higher-twist effects in the direct photon production and the role of infrared renormalons