generate a 3d colored image