Fix counting logic.. as we skip an item if it doesn't exist

Also, don't allow more then 50 pics
Fix same origin policy errors

Maybe this fixes stuff for Opera?
It fixes some issues in Chrome fetching the elephpants for example
on http://php.net (as the elephants requests www.php.net).

The policy check will automatically support all php.net subdomains