How to achieve rectangular tiles that can be stacked

Tiles are generally square, but I need to load some rectangular tiles, the width of the tiles is 2 times the height, and these tiles can be superimposed. Please give me some coding suggestions.