TST somewhat hacky fix for tests on image loading.