Caching length usually makes for better performance:

`for ( i = 0, len = imageData.width * imageData.height * 4; i < len; i += 4 ) {`