Fixed a bug in identifying public images