2 scripts for this:
save as view.php
save as delete.php
There isnt any styling for the output, there is no security .. you can add these things yourself.Make sure you edit the path section the the directory where your images are. This code is untested but should be fine.