Fix origin transform in DrawInternal with src rect

This change fixes a transform applied on the origin parameter
passed to DrawInternal, based on the ratio between the destination
rectangle and the texture width / height.

When a source rectangle has been specified, its size should be used
instead.