Remove the PictureMess file before writing into it.

This way, any problem with the file not being writable is prevented.