Doesn't this need a `temp_cover.seek(0)` and `temp_cover.truncate(0)` before every write? Otherwise it will just keep appending covers.