use jquery ajax load image and put it to image tag src in base64 way

https://stackoverflow.com/questions/19124701/get-image-using-jquery-ajax-and-decode-it-to-base64/25371174