libxrdp: make sure jpeg quality is valid
xorg: capture change for jpeg mode