Fix #169 by adding explicit max-width, max-height