public string MainProductImageUrl(Store store, Product product) { string url; var pictureService = EngineContext.Current.Resolve<IPictureService>(); var picture = product.GetDefaultProductPicture(pictureService); //always use HTTP when getting image URL if (picture != null) url = pictureService.GetPictureUrl(picture, BaseSettings.ProductPictureSize, storeLocation: store.Url); else url = pictureService.GetDefaultPictureUrl(BaseSettings.ProductPictureSize, storeLocation: store.Url); return url; }