Fix the "Invalid Value for Registry” Error When Viewing Photos