fixed issue when cloning Image objects