small adjustment to thumbnail-size calculation