Processing of larger images is very slow and looks like it could be optimized since stroke application can be parallelized