added image clone function, and generated operation to work for images