Now respects texture frames

More optimised atlas is created. Changed method of retaining the
created atlas. Now it is not retained but the saved atlas is reloaded.