fixes for captureBitmap
fast bloom sample
improved header
add math nextpow2
improved bloom demo