Fix issue #52: set max width and height of images in default.beamer