Change pow(2.0) to exp2() in tileSize calculation