Added GD library.
Applied GD to the main project.