make FromImage work with gifs

FromImage crashes when trying to process an image like this: http://i.imgur.com/EolEXZu.gif

This issue occurs when `b.Min.X` and `b.Min.Y` are not zero. With this change, the gif gets loaded correctly.