Fixed window resize bug, added pixel coordinates