pixel sorting with canvas