An effort to understand basic image processing