Updated to use Str::length for entity descriptions. Moved function to get first image in page to PageContent class.