True. But would a perfect God be perfect if he created something imperfect on purpose? Yes! Intent has everything to do with it. Creating in itself suggests something "imperfect" in comparison to God's uncreated nature. So you have hit the nail on the head.