You might look into rolling your own caching system into your current setup. In theory, come up with a image naming scheme and when a user requests an image, have your code check to see if its drawn the image before. If it has, it should retrieve it from the image cache (say a subdirectory you have somewhere on your server). The trick is figuring out what the cached file name would be (maybe the coordinates are in the file name?). If the file has been already generated, PHP could read the file back to the user without having to do much heavy lifting. If the file doesn't exist, then this is probably the first time this image has been requested and your script will generate the image, save it, and present it to the user, in theory of course...