Fixed bug when you would upload an image to a page that was already on the page: now the view will skip redundantly showing assets.
(This was only a visual bug -- the db never duplicated assets).
Added support for firstTpl and lastTpl.