Sketchbook / drawing tool

Hi - I’m considering making a rudimentary drawing tool that allows saving, loading, etc. I want undo functionality persisting through saves, so the saving needs to save the actions and data. Anyone consider/do this already?