A new image replacement technique