Fixed the Save functionality not working; still some bugs with ImageIO.write() but they might just not be worth trying to fix