key_commit: Fixed a SQL error from the official depository when more than one image exists