First version to successfully write 4 images. (Thanks to melissa!)