Validate in-app product image size (bug 1058279)

delete=False makes it so the file doesn't disappear when you close it. PIL needs it to be closed before it can re-open it.