fixed bug when theme has no image