In Photoshop you can use their 'statistics engine/script' to layer multiple images and (automatically, not manually) remove unwanted items, such as moving people:
http://lifehacker.com/remove-people-from-your-photos-with-this-photoshop-scri-1245505649
Is there an equivalent method in Affinity Photo?