Offset correction - tsimage

Changed the way tsimage padded data to better respect the offset.