fix crash when logo is not an image