Fixed slice breaking changes

Closes https://github.com/PistonDevelopers/image/issues/150
Merge pull request #152 from bvssvni/master

Fixed slice breaking changes