fixed memory leak from cancelation token in image preview generation