expires_after_secs applies to the image before it is attached to a Tweet or Direct Message. Once it is attached, the image will not expire from the media store. The point here is that you need to attach the image to a Tweet or Direct Message within 24 hours of uploading to the platform, or the image will be expired (deleted) from the media store.