Remove warning

Remove the warning if $image->getCacheFilePath() return empty string, right code this time :)