modify local image logic with download url