divide width and height by 2f to properly take into account resolutions
that are not divisible by 2