Convert 2d Image To 3d Python