Robust extensions to guided image filtering