Add gd dependency and update documents