Fix image load failure causes drawing to stop