Updates an existing work order event image record, identified by `workOrderEventImageId`, replacing its associated work order event link, name, type, description, image bytes, and thumbnail. 
A `userId` is passed for the audit trail. Returns the number of records affected along with a success/error message.

---
### Parameters
**workOrderEventImageId** `Integer`: Id of image to update<br />
**workOrderEventId** `Integer`: Id of the workOrderEvent<br />
**imageName** `String`: Name of image<br />
**imageType** `String`: Type of image<br />
**imageDescription** `String`: Description of image<br />
**imageBytes** `byteArray`: The image in byteArray format<br />
**thumbnail** `byteArray`: Thumbnail of image in byteArray format<br />
**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**# of rows modified** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
# Replace the "before" photo on a work order event with a corrected
# image and regenerate its thumbnail.

workOrderEventImageId = 9137
workOrderEventId = 4821
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})

newImageBytes = system.file.readFileAsBytes('C:/temp/repair_before_v2.jpg')
newThumbBytes = system.file.readFileAsBytes('C:/temp/repair_before_v2_thumb.jpg')

rowsUpdated, msg = system.kanoa.cmms.updateWorkOrderEventImage(
	workOrderEventImageId,
	workOrderEventId,
	'repair_before_v2.jpg',
	'JPEG',
	'Before photo - hydraulic leak on pump housing (corrected orientation)',
	newImageBytes,
	newThumbBytes,
	userId
)
```
