imagewriter: previous commit was incorrect, should be using the destination file extension