Revert "possibility to choose algorithm for resizing"

This reverts commit 388e3e87a84f4ce9b3690f125f5548adefb60b8d.
Revert "fix for resize"

This reverts commit 74568a66d20b2e79be3849bd5e148f344387e3ce.
Revert "resize fix"

This reverts commit 834672a7b044ced2a9ae40424b4925bd844ef885.