[ticket/13226] Fix the usage of $rank_img

https://tracker.phpbb.com/browse/PHPBB3-13226

PHPBB3-13226