Fix minor bugs with image.copy()