A......... [ZBX-8118] Implement CImage::validateUpdate() and use it to simplify CImage::update(). Fix code style.