finish enlarge_image with bad method,to be optimised later