move set_image_options() as a class method of apps.base.OptionParser