It works great except one condition which I couldnt find a solution to anywhere.
I need to show the new images in the details page. i.e., details.html in the template.
when i use the new images script in this post inside details.html i get the following error:
Fatal error: Cannot redeclare is_remote() (previously declared in /home/webbug/public_html/v2/photos/includes/functions.php:118) in /home/webbug/public_html/v2/photos/test-new.php on line 37