So a few months ago I have to deal with the kind of nine patch image. I see that many game engines and app frameworks support this kind of image, but Phaser doesn't. I did google around and found this gist on the thread ninepatch-images-possible-with-phaser. However, the code has some very serious problems: The class consider the image should be divided in to equals part horizontally and vertically, and we all know that most time, that is not the case; It creates new texture every time you crea