Adds unit test for image loading