I haven't got the time to check your code right now, but did you specify the wrong dimensions for each image by any chance? That's the first and most obvious cause of poor quality image display that springs to my mind.
Galaxy Note 8 vs iPhone X
Aardman's new YouTube channel to share the work of independent animators
iPhone X vs Samsung Galaxy Note 8
Les meilleurs navigateurs internet 2017