testing img replacement technique