A......... [ZBX-7981] code refactoring in image.update and maintenance.update