cleaned some console logs
Correct logic to select the best image to show in the big picture box