try/catch validate image based on mimetype

During an import I've come across images with extensions that are different from their mimetype (ie. someimage.gif has a mimetype of image/png). This solves the problem of images not importing based on an incorrect extension and should be relatively harmless for other code that uses is_valid_image. Please confirm.