thumbnail generation/getter refactor