add enlarge_image implementation