Require that 'w' matches the image width. Fixes #143