Add https support for image downloading