use https image urls when horde runs in https environment

this fixes bug #9983 from bugs.horde.org

now that the response of the api includes also an https url this should be used for https sites