rearrangeBySegments

Fragments the Bitmap into multiple segments and places them in new segments.