Split .px file functions from grafx (#91)