Improving the annotate script

Made significant changes to the annotate script to make it easier to do
batches of images.