Validate in-app product image size (bug 1058279)

pyflakes does that "next logical line not visibly distinguished from the previous line" thing without an indent but I like this new if statement better!