My solution for "Padding value is wrong if using bbox bounds"