workaround for images without ext. fixes #41