Fix (performance improvements) for pixelperfect collision on non-Flash targets (hopefully resolves #769)