3D BackgroundImages preparation

and outsourcing some Matrix methods to Tools.Tools