Update algorithm 

- Now, algo consider transparency on borders (and avoid bold borders)
- Pixels on image's borders are also repainting (pixels out of bounds
are consider as transparent pixels)