Bitmap: Explicit cast.
Minor refactoring
Uncompressed BAMs were displayed incorrectly due to the wrong offset.
Use ptrdiff_t to handle it correctly.