Code cleanup.

Remove useless imports
Delete png files after compilation succeeded

If compilation of a paper succeeded, generated png pages are now
probably obsolete.