automatic sizing for inline images