Fills an array correctly but dont write an image yet. will call the C function calc_pixel_value to write it in the future