Reverted order of image lookups for thumbnail