Enhanced get_pet_photos function

Added $before and $after arguments for more flexibility
Merge branch 'wip-2'
Added formatting fix for individual dogs
Merge branch 'wip-1'