Revert "Merge pull request #8 from kolesnikovde/image_dimensions"

This reverts commit 61b6ccad213f05c4c76c66471bf715cfac834e72, reversing
changes made to 23782ce0fabf8c995db9191ffbd88f3c2d2aacd0.