image resource check for extension including the dot