dwt 97 - refactored writing to destination to take advantage of burst write to

image. Shaved off a few ms from encoder.