Unref the picure mapped file only after it has been copied.

Fix crash when exporting to Picasa.