Thumbnail Generation Logic Applied