trying a new way of editing pictures

read stream and crop based on provided selection