Picture saving and sorting now fully working