option to choose image extension