Python Algorithm to Smoothly Blend Image Patches | Hacker News Reader