Stölz Grid

Topic:
Rectangle
A piece by Gunta Stolz got me thinking about tiling around a rectangle with squares of different sizes. So this applet picks a random common factor of the width and length and tiles, then repeats the process twice. For some reason, when coloring, some of the squares are relocated to the inside of the rectangle? Very weird but I kind of like the effect.
Image