workaround for bug in the image module, fixes #15