Refectoring: replaced array of bytes with Bitmap class for bitmap data