import latest changes from alexlib Image processing