This is so funny! Thank you! I tried it with some random images and it worked nicely, is there any specific reason behind the choice of the thresholds and the symbols you used or did you just try and try until you got it right?
I agree that taking the argument from command line instead of forcing you to call your image "hcdev.jpg" would be definitely better.