caching pixel coordinates