Use `deviceAspectRatio` variable instead of hardcoded ratio.

Hey there,

just a quick fix to use `deviceAspectRatio` variable instead of hardcoded ratio and some minor formatting.

Thanks for library.