added max with for images