timob-12961: fix the check for NinePatch images