better use constants to make it clear what can be used - e.g. otherwise you would not know whether to expect "jpg" or "jpeg" etc...