Made images conform to popups