Text-to-image synthesis optimization based on aesthetic assessment