update max width of image under media