Guided filtering to improve picture quality for digital image processing