import checks for proper image extension

isolated the image file type/mime type validation to the import module, using try/catch blocks in both WXR import and EPUB import.