triyng to figure out how to save the image