Create delete functionality for photos