use id attribute to set filename

id needs to be identical to filename including MIME .jpg etc.