He took
the photos.
(simple aspect - no emphasis of completed or on-going action) He had
taken the photos by the time the owner arrived.
(perfect aspect - action completed)
He was
taking the photos when the owner arrived.
(progressive aspect - action on-going)
He had
been taking the photos before the owner arrived.
(perfect progressive aspect - action on-going
but then finished)