Fix issue where since the image ids changed for every get avatar call mudrunner would keep allocating memory indefinitely.