Added a cache for bitStreams, a check to see if last paint for section is same as this paint, and force frameType = 1