fixed require.js usage and added image support via marked