Added support for GD image library