Fix for 3D imagetiling