You might add a comment here to the effect that since we're displaying three wallpaper images in each row, we're reducing each image to 1/3rd of its original size. So decoding each image at 3/8ths of the original size still results in an image that is big enough to fit the thumbnails since 3/8 is > 3/9