A novel approach for extracting time-delays from lightcurves of lensed quasar images