fix imageProvider: copy image buffer to give ownership to Qt