improved image downloading