You need to change this line to maxPixelSize as above.  The version of this combined patch that I was reviewing earlier today had it in both places, which concerns me that this yet another different version.