Download images from URLs and cache them if neccessary