work on Ubuntu (https://github.com/mperham/phashion/pull/9 )