fixes #2875 Image Editor still works when license is expired

Fixed the issue and pushed code for review, please check it