Clearing savedPics array on restart, caused old pictures to be loaded incorrectly