updating photos count after application wake up and after taking photo with the app