canny running on images loaded from buffer