fist draft of changes to make image posting work.