add text and image content-type selection
load content types from yml
fix content-type nil bug