- Move this code to a static method since it only depends on the expected image size (which here, is managed by the image list).
- Move the image-loading to a separate class