Updated to use Texture json atlas and frames in constructor