check on/off working with image replace