add option for image type/extension