Fix issue with editor and images

ref #4459

- move initMarkers back to its original home
- adds a test