Added support for php5-gd