added modal for last image