moves first image functions to excerpt file, abstracts move excerpt logic to a new function