Fix image import errors not being reported properly