Create getThumbnailDimension and add some comments