Uh, what exactly do you mean by "it doesn't work"? What seems to happen when you try to upload? Any error messages in the browser console? Speaking of which, what browser are you using? If it's an old one like Firefox 45 ESR, that could be it.
Either way, a JPG, PNG or GIF should work equally well, and if it's the wrong size it should just become distorted.