add jst templates
write image bb model