Add static formats() method to the Gd and Imagick classes