improve image downloading process