Remove useless method and extract pull image to its own method.