takes region from selected pixel