added clone, rotate and flip functions