[vector-api] Scale the image size and anchor by pixelRatio

Fixes #1432, comments welcome