Change method for obtaining overlay width & height. Fixes #317
Merge pull request #323 from jorgesilva/develop

Change method for obtaining overlay width & height. Fixes #317