Image processing using AMP