Add mouse support and image support in debug mode.