Image processing almost finished. Still a bug with high thickness