removed setting img['data'] in the generic capture method