Improve ImageFileValidator to make use of PHP 5.2's image_type_to_extension()