Added support for affine transformations

I'm not sure that algorithm is correct.
Added form for manipulation with imgs.
Reworked affine transformation
restructure + bilineal filtering
1more restructuring