Add screen size defines and replace constants in code