Added in clearImages to geolocate function