windows support
refactor magic numbers, add safe area rectangle