added resizeByMaxSide method, version 2.223
fixed computeDecodeBounds when using resize by single side