Clone the passed image so that we can modify it.