That wouldn't break off your images after twenty, but allow you to paginate between previous and next posts. If you publish twenty images in each post, you could bodge together something like what you have in mind.