Fixed annoying bug where if there were less images than the limit, the pagination would never render the content.