Refactoring: replaced array of bytes with Bitmap class for HiRes mode