Fixed #635

Added `destroy` method to the image node which deletes the reference
to the DOM or canvas objects.