Thanks for your replies!
Considering the complexity, I now consider making the code so that it recursively draws the rectangles and the first in the middle of the screen. If I can manage to get this working, this solves my problems with the moving camera since no camera is needed.