Refactor: Introduces a path for temp images.

Rather than repeating the string each time.
Also make it a File() so that it's easier to deal with.
Tests: Fixes what I believe is a bug in tests.

The tests fail if the 'temp' folder is not created.