moved count_balloons to be image_to_array
added const to get rid of warning