bug fix for max height,width. interlace fix
Merge branch 'compat'