Take image scale into account when creating scaled image with cap insets.