Use file extension of uploaded logo instead of hardcoding jpg

When uploading a logo, save the file logo extension instead of hardcoding jpg. This way, if the user uploads a logo.png, the url will be img/logo-1.png, whereas currently it is img/logo-1.jpg even though the content is a png file.