Adjustments to bounding box sizes and a hacky way of getting the bounding box to adjust with a rotated image