adding new option to provide image extensions to use