extract sensor size in more cases