new render image method for Razor