Implement Chain pattern for image processing.