jpeg example clean up