limit picture upload to jpg