issue #518 Need to delete .png file before overwriting or else you get a corrupted one