optimisations to thumbnail class