use $image->getUrlGenerator()
Merge pull request #5671 from Wikia/PLATFORM-634

use $image->getUrlGenerator()