fixed an issue related to themes without an 'img' dir