Fixed an Issue Where Extension-less Images Causes PHP Notices