GD/Decoder: check for imagecreatefromjpeg function

ext-gd can be compiled without libjpeg support as well.