Adding crop mechanism for output

Signed-off-by: Ilya Nelkenbaum <ilya@nelkenbaum.com>