Fixed file locks made by BitmapImage

BitmapImage uses BitmapCacheOptions.OnDemand by default. This options
makes file to be locked.