Added callback to delete all versions of the pic

After delete the record from the database, the afterDelete callback will be called to remove the files