fixes #2696 Image Editor not saving modified host thumbnail

Fixed the issue committed code for review, please check it.