Fixed bug for images in https