This fixes a bug which caused images (and locations, sounds...) messages not being delivered to the appropiate chat window.

This may affect issue #26, please, could you check if the notification behavior has changed?
I'd need a more exhaustive explanation for the issue in order to fix it, thank you!