Refactor rect printing with a generic polygon print function ; suppress shadows and border of canvas element