delete image.copy() operation,adjust code struct