Add to on.exit() instead of replace
Add imageOutput function
Update NEWS
Fix access to .clientData