code correction for img