Evaluating ChatGPT and GPT-4 for Visual Programming