fix and use onfly thumbnail generator