Small refactor. Took out duplicate code in dcAndBitmap()