small cleanup and improve image detection
bugfix: random.choice returning list