Changed barcode scanning results to return json and fixed segfault with no barcode containing images