it now shares code between createTextBitmap and createTextBitmapShadowStroke (no more duplication)