Fix bug in BoundedHandler for range calculation and provide a format
string for the BitmapWriter include % in string.  Fixes #2906

Change-Id: I2f1afcd7881fbe7f61960f72f378cda5d1168c80