I think that the message "Please select a valid image type" is much more intuitive since this error is thrown only if user selects some other file type than supported image types (for example selects an .zip or an .bpm or .tiff file).