adds image save and load