fix(controller): avoid download the image from the remote repository twice