set jpeg SLOT to 0, thanks to Michael Palimaka