fixed bug with painting squares, added frame painting and scaling test