added delete functionality and lots of picture stuff