add retry for image downloading