Updated build script
Now returns pointers to graphic buffers with result