Remove ppm before, not after export.

This fixes the bug where dangling a .ppm file
causes export to stop working.
backup/remove existing .jpg before shapening .ppm files
save views
restore views (broke --print)