Use img function for npc image