Processor now supports image depths up to 4, and is a bit cleaner. Reset bug seems to be solved