added config option for ocr_allowed_extensions array