Added gd support for php