Check if image exists before going all whitey at me

Fixes #5