Base to delete functions prepared

Added button to delete the image and extract the db id from the element
selected