added support for auto width + auto height