bug fix for max height,width. interlace fix