Fix unit tests for ImagesService