refines image links