APNG: fix tile pasting for images beyond the first