LPS-31815 Pass in the obj since you already have it
LPS-31861 Wrong conditions is repeated at finding the right value for imageThumbnail for legacy image gallery links