Fixed: img function not working in popout chatroom