set max-width to popup img