bug fixes, and added oembed for images