image.allowance workaround