Intercept Imagick exceptions

I've seen installations where the Imagick php extension was installed but was misconfigured.
In those cases creating new instances of Imagick throws exceptions.
Let's intercept those exceptions and fall back to GD.