can reuse the same list of supported extensions as in isImageFile()  to implement this method.