tkae a picture and update dom