Returns processed image.
Result.Success with the processed image or Result.Failure if processing failed.