diff --git a/src/Codec/Picture/WebP.hs b/src/Codec/Picture/WebP.hs
--- a/src/Codec/Picture/WebP.hs
+++ b/src/Codec/Picture/WebP.hs
@@ -1,4 +1,5 @@
-{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeFamilies  #-}
+{-# LANGUAGE TypeOperators #-}
 
 module Codec.Picture.WebP ( decodeRgb8
                           , decodeRgba8
@@ -52,7 +53,7 @@
                   -> Image p
                   -> CFloat
                   -> BS.ByteString
-encodeJuicyPixels encoder pxFactor img = encodeAbsBS encoder h w bytes pxFactor -- JuicyPixels and libwebp define weidth/height in opposite way?
+encodeJuicyPixels encoder pxFactor img = encodeAbsBS encoder w h bytes pxFactor
     where (Image w h bytes) = img
 
 encodeJuicyPixelsLossless :: (PixelBaseComponent p ~ Word8)
@@ -60,7 +61,7 @@
                           -> Int
                           -> Image p
                           -> BS.ByteString
-encodeJuicyPixelsLossless encoder pxFactor img = encodeAbsBSLossless encoder h w bytes pxFactor -- JuicyPixels and libwebp define weidth/height in opposite way?
+encodeJuicyPixelsLossless encoder pxFactor img = encodeAbsBSLossless encoder w h bytes pxFactor
     where (Image w h bytes) = img
 
 decodeJuicyPixels :: (PixelBaseComponent p ~ Word8)
diff --git a/webp.cabal b/webp.cabal
--- a/webp.cabal
+++ b/webp.cabal
@@ -1,6 +1,6 @@
 cabal-version:      1.18
 name:               webp
-version:            0.1.0.1
+version:            0.1.0.2
 license:            GPL-3
 license-file:       LICENSE
 copyright:          Copyright: (c) 2020 Vanessa McHale
@@ -36,7 +36,7 @@
         WebP.Types
 
     default-language:  Haskell2010
-    other-extensions:  TypeFamilies
+    other-extensions:  TypeFamilies TypeOperators
     ghc-options:       -Wall
     build-depends:
         base >=4.7 && <5,
