FIX: Replace deprecated control directive with loop

Fix for https://github.com/briceburg/silverstripe-sitemedia/issues/3