fixed rainbow

fixed rainbow script so imgs and others are more stable with it.