updated version added jpeg stream reader