Fix error in `ImageBuf::from_fn`. Closes #60
Merge pull request #61 from cybergeek94/master

Fix error in `ImageBuf::from_fn`