Fixed a issue with NAN (/0) when there is no image width or height.

Change to float
Merge branch 'master' of https://github.com/duncandee/appium-dot-app