Fix for beginBitmapFill and drawRect for html5 target

  1. Fix incorrect image position when optimizations used
  2. Fix bug with shared matrices (store copy of object instead of pointer to the original one, to be able to use the same matrix object (but with different values) in several beginBitmapFill() calls)