implements image downloads