Manually close tempfiles in the tests

At 125 tests I ran into "too many open filehandles" trying to create a
new tempfile
PARTIAL: first pass at an image resizer