Added markdown preview and image upload