Added logic to check support for listing public images.