Cap inset detector & optimizer for resizable UIKit assets.