Panic "Image index out of bounds" in ImageBuffer::get_pixel()

The following GIF images trigger a panic in ImageBuffer::get_pixel() when decoded: gif-oob.zip

Code to reproduce the issue is exactly the same as in #876. Found with AFL.rs, tested on git commit 865d2fc