<?php
// get random image
$image = $page->images->getRandom();
// get single image by tag
$page->media->getTag('gallery');
// get multiple images by tag
$page->media->findTag('gallery');
// get first image
$page->images->first();
// get image from images field
$page->images->eq(0)
$page->images->eq(1)
$page->images->eq(2)
// delete image
$p->img->removeAll();
// Delete multiple images from page
$i=0;
foreach($p->images as $image){
if($i++ != 0) $p->images->delete($image);
}