Fix bug #422: Crash: map_cairo_image(): Assertion failed 

There weren't any checking of the status of the cairo_surface_t when reading the image from file. This commit adds it and fixes the bug.