Extract directory? function
Simplify test for loading image
Join random image tests
Rename test
Rename paths to path