Clean the arrow layout code

It was my first cairo code ever, I got better ;)