Image processing using approximate data-path units