Factor out getHorizontalBounds
Insert the figure before the bottomElement of the bound