fix bugs in Image.h, add MotionLayers cluster based on motion only, add tests for MotionLayers cluster