added crop and resize for crop type