tested working version of interpolateimg

both cpu and gpu verions with timing