Add jQuery to popup dot html. Draw canvas and put image in canvas. Hide image.