wp media regenerate: check if there is platform support for generating images before starting
check for platform support before calling 'wp media import' too
Merge pull request #1003 from wp-cli/img-ext-check

Check that php-gd or php-imagick is available, before calling `wp media regenerate`