Fixed crop+resize bug.