This reverts commit fc5756ea5e. It hangs in cairo_image_surface_create_from_png_stream consuming 100% CPU when png is malformed: fc5756ea5e
fc5756ea5e