adding auto crop to generated images