Fixed jpeg save bug in snapshot nodes
Actual fix to jpeg functionlity