Check command line argument length in converttoimage.py