catch nil image error