Remove duplicate test class.
Revert "Avoid expanding buffer to fit entire image."

This reverts commit deef4ae2607fcbd32caffc03e2490cbca9134643.
Fixes #231.
Reopens #225.