updated splitting of bitmaps to use rotation