This PR includes these changes.
Drop old extension handler
@katsuma thanks for updating to 4.2. This is not the canonical repo for middleman-imageoptim. I'm happy to merge the 4.2 bump though!
P.S. Why did you remove the old extension handler? Is that a necessary related change?