Swaps round the if statements in cube_to_image to fix bug
Merge pull request #54 from ellisowen/cube_to_image_correction

Swaps round the if statements in cube_to_image to fix bug