extended httpImagePath to be compatible with downsampling if it ends with a /