Fix bug introduced in @cc9e1e8, Thumbnails may not have the right dimension