added patch for qtgui jpeg change