starting to flesh out image saving