changed apply motion flag and auto cast input image if it isn't float