JS hack to give images a max-height