Add support for php-gd