Defined IMAGETYPE_UNKNOWN and IMAGETYPE_COUNT to fix issue #1634.

The values used were defined in the PHP source code [here](https://github.com/php/php-src/blob/master/ext/standard/php_image.h).