bitmap size calculation fixed