border drawing, fixes tiling with double borders