refactor image helper
fix content editing