Added a memory dump around scaler/jpeg encoder & updated jpeg encoder with one that seems a bit better (notes linear memory usage)