added baseThreshold to ImageBitmap