Automated Satellite Track Detection And Endpoint Determination In Astronomical Images