Add max-width and max-height for img