changes to area and cube_to_image

switches if statements around in cube to image (apparently I hadn't commited these before), and converts the area function to work with fits.ImageHDU as an input.