Saving/loading , converting images to grid