Added code for getting pixels and outputing to file.