sourceSize

Deprecated

Use virtFrame

Replace with

Size(virtFrame?.w ?: frame.w, virtFrame?.h ?: frame.h)