Added functionality to download the latest image.