how to create 3d cube from 2d images