correctly handled the file download of pictures and the progress.