adding double_square_tile code from ticket #13069