convert to argparse. start implementing figure renaming (does not currently work. needs to consider multiple image files within a single figure)