add support for bottom and right offset