listing images. links method of the images came with the paginate class that will create the pagination  for us
delete the image from the database and server