Fixed issue where replaying would only copy over the first pixel each time. Cleaned up debugging stuff now that it's working pretty well. Still need to implement control of flushing.