Added gd2 support.