clean up energy1 function and remove filters
move array_to_image to seam_carve file