Good coding practices with thickness, x, y, w, and h
parameters in a nested while-if loop.