I\'m having a problem in WPF where a window doesn\'t release it\'s file-lock on the background image file after closing, before another part of the application tries to write to the image.