VID-1907 Changed logic to show gallery if there is at least one image