Refactorize the info of image