Add an error check to img__new_bitmap.

This provides better error behavior if the user sends in NULL for the
path string.