bug fixes for affine transformer, puzzle piece transformer and combine
piece recognition with the transformation