crop npm flow image.