changed context to use resolution instead of w/h