Fix load image bug for 3.0.1