Maintenance: More accurate output from thumbnail generation