Fixed null image error