public TilesetImageImportDialogViewModel(string imagePath, int snap = 0, int offset = 0)
{
Image = SpriteBitmapCache.GetOrLoadImage(imagePath);
ImageWidth = Image.PixelWidth;
ImageHeight = Image.PixelHeight;
FileName = Path.GetFileNameWithoutExtension(imagePath);
Title = string.Format("Import {0}", FileName);
OnPropertyChanged("Image");
OnPropertyChanged("ImageWidth");
OnPropertyChanged("ImageHeight");
OnPropertyChanged("Title");
Spacing = snap;
Offset = offset;
}