Reduce the odds of a collision in image keys

Fixes #27

If anyone would like to review these changes, I'd certainly appreciate input!