Added delete pictures functionality