Simplify loop conditions
Replace the `yPos <= maxYPos)` check in the inner loop with an more explicit check whenever a thumnail is drawn. `(yPos <= maxYPos) && !validThumbnails)` is redundant, as yPos is only incremented whenever validThumbnails is incremented. Move the validThumbnails check into the loop.
Showing with 9 additions and 4 deletions