Added thumbnails using GD

Added thumbnails for sending image messages using the GD extension.
Previously this only worked using the ImageMagic extension which is
quite uncommon.