/// <summary>
/// Method to draw a MapImage
/// </summary>
/// <param name="spriteBatch">XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method</param>
/// <param name="imageLayerID">Index of the layer to draw in the Map.ImageLayers collection</param>
/// <param name="imageID">Index of the object to draw in the Map.ImageLayers.MapImages collection</param>
/// <param name="rect">The Rectangle to draw, in map pixels</param>
/// <param name="region">Region of the map in pixels currently visible</param>
/// <param name="layerDepth">LayerDepth value to pass to SpriteBatch</param>
public void DrawMapImage(SpriteBatch spriteBatch, Int32 imageLayerID, Int32 imageID, ref Rectangle rect, ref Rectangle region, Single layerDepth)
{
Color color = this.ImageLayers[imageLayerID].Color ?? this.ImageLayers[imageLayerID].OpacityColor;
Rectangle target = Map.Translate(rect, region);
spriteBatch.Draw(this.ImageLayers[imageLayerID].MapImages[imageID].Texture, target, null, color, 0, Vector2.Zero, SpriteEffects.None, layerDepth);
}