Added gd and Imagick support.