Moves the logic from all different places into single state listener to combine all inputs into a single output.
Also, use the configured resolution to set it as the max received frame size.