Simplified code, added comments, and moved towards using player.config values for height and width. [Fixes #80458348]
updated based on donato's feedback
Merge pull request #197 from jwplayer/saferegion_fixnumber2

[Delivers #80458348] Simplified code, added comments, and moved towards using player.config v...