Made ImagePreview properly call OnClose when the form is closing.
Fixes bug that keeps images 'locked' even after ImagePreview is closed.