In this paper, we study the dimension theory of a class of piecewise affine systems in euclidean spaces suggested by Barnsley, with some applications to the fractal image compression. It is a more general version of the class considered in the work of Keane, Simon and Solomyak [42] and can be considered as the continuation of the works [5, 6] by the authors. We also present some applications of our results for generalized Takagi functions and fractal interpolation functions.