finally (it seems), working with correct scaling of frames to fit the screen size.