Added offset x/y functionality

This will give users ability to handle screen boundaries