[playground] fix BitmapFunction for older SciPy versions