Use struct "images" in each function. BUG = Segmentation fault