Change getImageUrl() to getResourceUrl() in core.