Cleaned up code to check for missing/invalid image and to properly display generic image not found.

For anyone upgrading from v1.2, simply replace image.php in root directory.

More...