adjust frame size and resolution