For the writeValue() function to work you will need to read the values using readValue() function first, but to properly write the values the images first must be loaded as RGBImageFile type which requires external code to do so. More information in the test_ImageListValue class. This is more of an issue of good coding practices and than functionality of the code.