added stops at canvas edges