Make required module GD optional

This will help users who do not have the GD library installed on their
system and do not require image support.
Merge pull request #28 from rupertl/gd-optional

Make required module GD optional