img_scratch_data now allocated using malloc in fast-edge.c