inlining JellyPixel utility class since it may be called a lot.