Well, I really dont know now, we tryed with u all kind of stuff...
but I asume, that integration 4mages with IBF does correction in 4images Database. and random.php cant correctly read information from database.
I'll try to look what changes make IBF integration, but, since I know almost nothing about PHP and MySQL...
maybe somebody else can figure it out?