fixed status bar not restoring to its original state on closing the image