improved image downloading on server