Fix bug in cube_to_image function
Merge pull request #53 from ellisowen/cube_to_image

Fix bug in cube_to_image function