modify for qt show jepg env