save img src as .jpg