Moved image editor class to its own file.

TODO:
Improve setting max execution time code
Detect openCV proper
Add checkbox whether to use FD or not