Use in memory jpeg conversion for retained frames