        {
            batch.Draw(texture, position, sourceRectangle, color ?? Color.White, rotation, origin, scale ?? Vector2.One, effects, layerDepth);
        }
        public static void Draw(this SpriteBatch batch, Texture2D texture, Rectangle position, Rectangle? sourceRectangle = null, Color? color = null, float rotation = 0f, Vector2 origin = default, SpriteEffects effects = SpriteEffects.None, float layerDepth = 0f)
        {
            batch.Draw(texture, position, sourceRectangle, color ?? Color.White, rotation, origin, effects, layerDepth);
        }
    }
}