Cleanup object URLs in localmsg

Fix for issue #708

- Add image cleanup function
- _sendBackScaledImage cleans up
- onerror cleans up