added iOS and hi res detection to resolve issue #1

new flags tm.iOS and tm.hiResDisplay