Fixing imagesdir for tests