fix #12: use crop method based on img instance