Limiting by 5 results Glob (Images)
===

I've been searching the internet for days for some result, never founded it so I tought to try to get some result here : 

I have the following code that has to be limited to 5 images and they have to be ordered from te last 5 images.

 
    $directory = "images/";
    $images = glob("" . $directory . "{*.jpg,*.gif,*.png}", GLOB_BRACE);


    foreach($images as $image)
    {
    echo "<a href=\"http://iimages.org/?v=". str_replace ('images/', '', $image) ."\"><img src=\"http://iimages.org/" .$image . "\" style=\"border:1px solid #021a40;\" width=\"150\" height=\"150\"></a>&nbsp;";
    }

Please help ? 

Thanks,

Dave