Validate in-app product image size (bug 1058279)

`if img.size != (allowed_square_size, allowed_square_size):`?