Update to allow maxHeight/maxWidth configs

This fix allows a regression from #48. It once again allows user to
configure the maxHeight/maxWidth configs.