Minor changes to image saving code for AnvilMapper