change img.push to send value cyclic