Add file type restriction of upload image function.