updated write diff image