limit supported extensions to gif,jpg,jpeg,png