set up image min and scale image served