add https support to image