Group receive image fixes

It took me a while to figure this out. I didn't only see random nick names when receiving images in groups, but also experienced random Pidgin crashes. This fix seems to work fine according to a couple of tests.