minor fix - doesn't allow file extensions that are not image type (haven't yet addressed problem of extensions that have been changed to fool system.)