add filter to $attachment_ids to be able to include more media ids