You can use photos accessed via API:
Photos accessed via API can be used up to 30 days after the subscription is canceled.